package com.example.databasepj.Request;

public class AdminAddUserRequest {
    //{
    //    "user_name": "string",
    //    "gender": 0,                // 0 for 男, 1 for 女
    //    "StudentOrWorkNumber": 123456,
    //    "age": 23,
    //    "role": 0                  //0 for student, 1 for 教职工
    //    "password": "改好发给会恶化人突然"
    //}
    private String user_name;
    private int gender; // 可以使用枚举代替整型，以提高代码可读性
    private int studentOrWorkNumber;
    private int age;
    private int role; // 可以使用枚举代替整型
    private String password;

    public AdminAddUserRequest(String user_name, int gender, int studentOrWorkNumber, int age, int role, String password) {
        this.user_name = user_name;
        this.gender = gender;
        this.studentOrWorkNumber = studentOrWorkNumber;
        this.age = age;
        this.role = role;
        this.password = password;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getStudentOrWorkNumber() {
        return studentOrWorkNumber;
    }

    public void setStudentOrWorkNumber(int studentOrWorkNumber) {
        this.studentOrWorkNumber = studentOrWorkNumber;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
